package cn.juque.lucenecandy.core.annotation;

import cn.juque.lucenecandy.core.enums.AnalyzerEnum;

import java.lang.annotation.*;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>Index</li>
 * </ul>
 * @date 2023-12-01
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
public @interface Index {

    /**
     * 实体对应的索引
     */
    String value() default "";

    /**
     * 对应的写入分析器
     *
     * @return AnalyzerEnum
     */
    AnalyzerEnum analyzer() default AnalyzerEnum.STANDARD_ANALYZER;
}
